Skip to content

docs(chat): explain the dual ensureChatRootStyles path (unblocks demo redeploy)#379

Merged
blove merged 2 commits into
mainfrom
claude/touch-chat-to-redeploy-demo
May 16, 2026
Merged

docs(chat): explain the dual ensureChatRootStyles path (unblocks demo redeploy)#379
blove merged 2 commits into
mainfrom
claude/touch-chat-to-redeploy-demo

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 16, 2026

Summary

Docstring addition to chat-tokens.ts explaining why we keep both injection paths (module-eval side effect + explicit constructor calls in chat compositions).

Why now

The demo at demo.cacheplane.ai has been stuck on a build from before v0.0.32 because:

  1. Every PR touching libs/ since then would have triggered a demo redeploy
  2. But every push to main since the telemetry api-docs drift landed has been failing the website lint/build gate
  3. PR chore(docs): regenerate telemetry api-docs (unblocks Deploy → Vercel) #377 fixed the drift, but PR chore(docs): regenerate telemetry api-docs (unblocks Deploy → Vercel) #377's own diff doesn't trigger demo_changed=true (it only touched apps/website/content/docs)

This PR is a libs/chat docstring change that BOTH:

  • documents the dual injection pattern (genuine improvement)
  • triggers demo_changed=true so the canonical-demo Vercel deploy step actually runs

After this lands, the demo finally picks up PR #375's fix (v0.0.35's lifecycle-guaranteed token injection).

Test plan

  • No code changes; comment-only addition
  • CI green
  • Demo redeploys; demo.cacheplane.ai/embed has <style id="ngaf-chat-root-tokens"> present
  • Visual confirmation: sidenav has width, input has border, suggestion chips have pill chrome

🤖 Generated with Claude Code

blove and others added 2 commits May 16, 2026 13:58
apps/website/content/docs/telemetry/api/api-docs.json drifted 19
lines on main — a recent telemetry change added a public API entry
but didn't regenerate the docs. The `Verify generated API docs are
committed` step in Website — lint / build has been failing on every
push to main since, and that job gates the entire Deploy → Vercel
job (which is the one that auto-deploys demo.cacheplane.ai +
cacheplane.ai + cockpit.cacheplane.ai + examples.cacheplane.ai).

Result: the demo has been stuck on a stale build despite the auto-
deploy wiring being correct. Regenerated via `npm run generate-api-
docs`; diff is purely additive (19 inserts, 0 deletes).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Document why we keep both the module-eval side-effect call AND the
explicit constructor calls in the top-level chat compositions: the
side-effect is the fast path for source-resolution consumers, the
constructor calls are the guaranteed path for production-bundled
consumers where tree-shaking can drop the side effect.

Also: this commit's libs/ change unblocks the canonical-demo Vercel
redeploy that's been stuck since v0.0.32 (the prior libs/ commits all
failed CI's website-lint-build api-docs check; #377 fixed that but
its diff didn't trigger demo_changed=true).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 16, 2026 9:43pm

Request Review

@blove blove merged commit 5d3143e into main May 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant